using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public static class Library
{
    static List<int> cards = new();

    public static Card Get()
    {
        int num = Random.Range(0, 52);
        foreach (int i in cards)
            if (i == num)
                return Get();
        Flower f = (Flower)(num / 13);
        Point p = (Point)(num % 13);
        cards.Add(num);
        return new(f, p);
    }

    public static void Wash() => cards.Clear();

    public static int Count() => 52 - cards.Count;


}
